package orcamento;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "item_orc_mat")
@SequenceGenerator( name = "ITM_ID", sequenceName = "ITM_SEQ", allocationSize = 1 )
public class Item_orc_mat implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id")
	@GeneratedValue( strategy = GenerationType.IDENTITY, generator = "ITM_ID" ) 
	private int id;
	@Column(name = "cod_item")
	private int cod_item;
	@Column(name = "desc_item")
	private String desc_item;
	@Column(name = "vlr_item")
	private float vlr_item;
	@ManyToOne  
	@JoinColumn(name = "itemorcmat") 
	private EntidadeOrcamento itemorcmat;
	private int servico;
	private boolean btn_del;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public boolean isBtn_del() {
		return btn_del;
	}
	public void setBtn_del(boolean btn_del) {
		this.btn_del = btn_del;
	}
	public int getServico() {
		return servico;
	}
	public void setServico(int servico) {
		this.servico = servico;
	}
	public int getCod_item() {
		return cod_item;
	}
	public void setCod_item(int cod_item) {
		this.cod_item = cod_item;
	}
	public String getDesc_item() {
		return desc_item;
	}
	public void setDesc_item(String desc_item) {
		this.desc_item = desc_item;
	}
	public float getVlr_item() {
		return vlr_item;
	}
	public void setVlr_item(float vlr_item) {
		this.vlr_item = vlr_item;
	}
	public EntidadeOrcamento getItemorcmat() {
		return itemorcmat;
	}
	public void setItemorcmat(EntidadeOrcamento itemorcmat) {
		this.itemorcmat = itemorcmat;
	}

}
